Notices

The following notices shall help you to use RPGUnit properly and to understand unexpected results.

How it works

Basically RPGUnit tries to works exactly the same as JUnit. But there is an edge case when assertions are monitored. If the test suite is executed with parameter ONFAILURE set to *CONTINUE, RPGUnit cannot detect that the assertion is monitored and hence reports an error.

The problem does not exist, if the test suite is executed with parameter ONFAILURE set to *ABORT, which is the default value.

Monitor Group

monitor;

   // calculation statements
   
   aEqual( 'HelloWorld' : 'Hello' );  

on-error;
   // error handler
endmon;
CALLP - Error Extender
callp(e) aEqual( 'HelloWorld' : 'Hello' );